package com.qfedu.mall.beans.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "spell_group")
public class SpellGroup {
    /**
     * 拼团id
     */
    @Id
    @Column(name = "group_id")
    private Integer groupId;

    /**
     * 成团ID
     */
    @Column(name = "user1")
    private Integer user1;

    /**
     * 参团人TD
     */
    @Column(name = "user2")
    private String user2;

    /**
     * 拼单状态1开启 2成功 3失败
     */
    @Column(name = "stats")
    private String stats;
    /*
    * 商品Id
    */
    @Column(name = "product_id")
    private String productId;
}
